package com.goods.controller.business;

import net.sf.jsqlparser.expression.DateTimeLiteralExpression;

import java.util.Date;

public class testController {
    public static void main(String[] args) {
        String d1 = "2016-11-04 09:05:01";//昨天
        String d2 = "2016-11-05 09:05:01";//今天
        String d3 = "2016-11-06 09:05:01";//明天

        if(d1.compareTo(d3) < 0) {
            System.out.println("d1是昨天，d2是今天，d3是明天！");
        }
        if(d3.compareTo(d1) > 0) {
            System.out.println("d1是昨天，d2是今天，d3是明天！");
        }
    }
}
